Point

public interface Point

A pair of numbers that in general are used to define coordinates in the two-dimensional space.

Functions

Link copied to clipboard
public static Point empty()
Returns an empty Point that has x and y values set to zero.
Link copied to clipboard
public static Point of(int x, int y)
Returns the Point instance for the given x and y values.
Link copied to clipboard
public int x()
Returns the horizontal coordinate.
Link copied to clipboard
public int y()
Returns the vertical coordinate.